package com.numberma.loggingservice.controller;

import com.numberma.loggingservice.Result.Result;
import com.numberma.loggingservice.Service.LoggingService;
import com.numberma.loggingservice.entity.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class LogController {
    @Autowired
    private LoggingService loggingService;
     @PostMapping("/log/push")
    public Result pushLog(@RequestBody Log log) {
         //TODO: 推送日志
         return loggingService.insert(log);
     }



}
